package com.tt.controller;

import com.tt.entity.vo.MapVO;
import com.tt.service.MapService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * <p>
 *
 * </p>
 *
 * @version 1.0
 * @auther sugarttt
 * @since 2022-11-10 10:29:03
 */
@RestController
public class MapController {

    private final MapService mapService;

    public MapController(MapService mapService) {
        this.mapService = mapService;
    }

    /**
     * 省份的name,id,value
     */
    @GetMapping("/getMap")
    public ArrayList<MapVO> getMap(String beginYear, String endYear){
        return mapService.getMap(beginYear, endYear);
    }

}
